﻿using PlaneCleanEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PlaneClean.Service
{
    public class SprinklerService
    {
        /// <summary>
        ///  监测是否排空 并返回未排空喷头组编号
        /// </summary>
        /// <param name="sprinklerType">需要监测的喷头组类型</param>
        /// <returns></returns>

        public List<string> CheckExhaust(string sprinklerType)
        {
            return DbFactory.dbFactory.Db.Queryable<t_sprinkler>()
                  .Where(a => a.sk_exhaust == 0 && a.sk_type == sprinklerType).Select(a => a.sk_number).ToList();
        }
    }
}